package com.xbongbong.saas.domain.entity;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Size;

/**
 * @author lrj
 * @date 2022/4/13 15:50
 */
@Setter
@Getter
@ToString
public class PublicGroupSeniorEntity extends Entity {

    /**
     * 主键
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;

    private Integer businessType;

    private Long parentId;

    private Integer level;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 分组名称
     */
    @Size(min=1, max=50, message="分组名称长度必须在1-50之间")
    private String name;

    private Integer status;
    /**
     * 排序值
     */
    private Integer sort;
    /**
     * 查询条件json [{"symbol":"2","name":"attr40","data":"史莱姆"}]
     */
    private JSONArray jsonData;

    /**
     * [{property: "dept", editable: 1, id: 5, name: "研发部"},
     * {property: "role", editable: 1, id: "2", name: "角色2"},
     * {property: "user", editable: 1, id: "1", name: "张杰"}]
     */
    private JSONArray scopeRule;

    private JSONArray adminScopeRule;
    /**
     * 添加时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 创建人userid
     */
    private String creatorId;
    /**
     * 最近修改人userid
     */
    private String modifierId;
    /**
     * 公海分组类型：1：全部分组。2：无分组 0：其他普通分组
     */
    private Integer groupType;
    /**
     * 删除标记
     */
    private Integer del;

}
